package cn.yh.springbootjwt.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "分页查询参数")
public class PageQuery {
    @ApiModelProperty(value = "页码", required = true)
    @NotNull(message = "页码不能为空")
    Integer pageNum;

    @ApiModelProperty(value = "每页大小", required = true)
    @NotNull(message = "每页大小不能为空")
    Integer pageSize;
}
